package com.jxc.interface_test.voice_service;

import java.util.Scanner;

// 实现输入不同的area_num,打印不同国家的问候语功能
public class Customer_service {

//    public static int area_num(){
//        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入您想要的语音服务，1为中文，其余数字均为英文");
//        int num = scanner.nextInt();
//        return num;
//    }

    public language hello(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您想要的语音服务，1为中文，其余数字均为英文");
        int area_num = scanner.nextInt();
        if (area_num == 1){
            return new chinese();
        }else
        {
            return new English();
        }
    }


}
